home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Tools
/
mpeg_stat-2.2
/
porting.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-05-10
|
405b
|
25 lines
/*
If you do not have isprint(c) (sequent)
Add the following line to video.c
*/
#define isprint(x) (x>=' ')
/*
If you do not have strdup (some DECs)
Add the following to main.c
*/
#define NULL 0
char * strdup(x)
char *x;
{
char *new;
new= (char *) malloc(strlen(x));
if (new == NULL) {
printf("Unable to allocate string!\n");
exit(1);
}
strcpy(new, x);
return new;
}